package com.wxx.design.decorator.v2;

/**
 * @author Jetwang
 * @version 1.0
 * @date 2022/4/18 15:39
 */
public class EggDecorator extends AbstractDecorator{
    public EggDecorator(AbstractBatterCake abstractBatterCake) {
        super(abstractBatterCake);
    }

    @Override
    protected String getDesc() {
        return super.getDesc() + "加一个蛋";
    }

    @Override
    protected int cost() {
        return super.cost() + 1;
    }
}
